//
//  WPReadingSharedBtn.m
//  wobingwoyi
//
//  Created by WGP on 2017/1/17.
//  Copyright © 2017年 WGP. All rights reserved.
//

#import "WPReadingSharedBtn.h"

@implementation WPReadingSharedBtn

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat width = self.bounds.size.width-20;
    CGFloat height = width*self.imageView.bounds.size.height/self.imageView.bounds.size.width;
    self.imageView.frame = CGRectMake(10, 18*SCALE_FULL, width, height);
    
    self.titleLabel.frame = CGRectMake(0, CGRectGetMaxY(self.imageView.frame)+10, self.bounds.size.width, self.titleLabel.bounds.size.height);
}

@end
